package ooday03;

public class Dog1 extends Animals1 implements Swim1{
    Dog1(String name,int age,String color){
        super(name,age,color);
    }
    void eat(){
        System.out.println(color+"色的"+age+"岁的狗狗"+name+"正在啃骨头");
    }
    void lookHome(){
        System.out.println(color+"色的"+age+"岁的狗狗"+name+"正在看家");
    }
    public void swim1(){
        System.out.println(color+"色的"+age+"岁的狗狗"+name+"正在游泳");
    }
}
